package com.ruoyi.house_sale.service.serviceImpl;

import java.util.List;

import com.ruoyi.house_sale.service.IPaidTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house_sale.mapper.PaidTypeMapper;
import com.ruoyi.house_sale.domain.PaidType;


/**
 * 收款方式Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-28
 */
@Service
public class PaidTypeServiceImpl implements IPaidTypeService
{
    @Autowired
    private PaidTypeMapper paidTypeMapper;

    /**
     * 查询收款方式
     * 
     * @param paidtypeid 收款方式主键
     * @return 收款方式
     */
    @Override
    public PaidType selectPaidTypeByPaidtypeid(Long paidtypeid)
    {
        return paidTypeMapper.selectPaidTypeByPaidtypeid(paidtypeid);
    }

    /**
     * 查询收款方式列表
     * 
     * @param paidType 收款方式
     * @return 收款方式
     */
    @Override
    public List<PaidType> selectPaidTypeList(PaidType paidType)
    {
        return paidTypeMapper.selectPaidTypeList(paidType);
    }

    /**
     * 新增收款方式
     * 
     * @param paidType 收款方式
     * @return 结果
     */
    @Override
    public int insertPaidType(PaidType paidType)
    {
        return paidTypeMapper.insertPaidType(paidType);
    }

    /**
     * 修改收款方式
     * 
     * @param paidType 收款方式
     * @return 结果
     */
    @Override
    public int updatePaidType(PaidType paidType)
    {
        return paidTypeMapper.updatePaidType(paidType);
    }

    /**
     * 批量删除收款方式
     * 
     * @param paidtypeids 需要删除的收款方式主键
     * @return 结果
     */
    @Override
    public int deletePaidTypeByPaidtypeids(Long[] paidtypeids)
    {
        return paidTypeMapper.deletePaidTypeByPaidtypeids(paidtypeids);
    }

    /**
     * 删除收款方式信息
     * 
     * @param paidtypeid 收款方式主键
     * @return 结果
     */
    @Override
    public int deletePaidTypeByPaidtypeid(Long paidtypeid)
    {
        return paidTypeMapper.deletePaidTypeByPaidtypeid(paidtypeid);
    }
}
